All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.JSeparator

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JSeparator

public class JSeparator
extends JComponent
implements Accessible
An implementation of a Menu Separator -- a divider between menu items that breaks them up into logical groupings.

Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.


Constructor Index

 o JSeparator()
Create a new separator

Method Index

 o getAccessibleContext()
Get the AccessibleContext associated with this JComponent
 o getUI()
/** Returns the L&F object that renders this component.
 o getUIClassID()
Returns the name of the L&F class that renders this component.
 o setUI(SeparatorUI)
Sets the L&F object that renders this component.
 o updateUI()
Notification from the UIFactory that the L&F has changed.

Constructors

 o JSeparator
 public JSeparator()
Create a new separator

Methods

 o getUI
 public SeparatorUI getUI()
/** Returns the L&F object that renders this component.

Returns:
the SeparatorUI object that renders this component
 o setUI
 public void setUI(SeparatorUI ui)
Sets the L&F object that renders this component.

Parameters:
ui - the SeparatorUI L&F object
See Also:
getUI
 o updateUI
 public void updateUI()
Notification from the UIFactory that the L&F has changed. Called to replace the UI with the latest version from the UIFactory.

Overrides:
updateUI in class JComponent
See Also:
updateUI
 o getUIClassID
 public String getUIClassID()
Returns the name of the L&F class that renders this component.

Returns:
"SeparatorUI"
Overrides:
getUIClassID in class JComponent
See Also:
getUIClassID, getUI
 o getAccessibleContext
 public AccessibleContext getAccessibleContext()
Get the AccessibleContext associated with this JComponent

Returns:
the AccessibleContext of this JComponent
Overrides:
getAccessibleContext in class JComponent

All Packages  Class Hierarchy  This Package  Previous  Next  Index